package com.ps.controller;

import com.ps.service.StatisticService;
import com.ps.model.vo.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("statistic")
public class StatisticController {

    @Resource
    private StatisticService service;

    @GetMapping("getFourBlock")
    public R getFourBlock() {
        return R.success(service.getFourBlock());
    }

}
